package com.fp.m7.generator;

import com.fp.m7.api.model.Account;

public class AccountGenerator {
	private static final int STANDARD_LENGTH = 50;
	private static final int DESCRIPTION_LENGTH = 500;

	public String getUsername() {
		return RandomString.generate(STANDARD_LENGTH);
	}

	public String getPassword() {
		return RandomString.generate(STANDARD_LENGTH);
	}

	public String getNickname() {
		return RandomString.generate(STANDARD_LENGTH);
	}

	private String getStatus() {
		return RandomString.generate(STANDARD_LENGTH);
	}

	private String getDescription() {
		return RandomString.generate(DESCRIPTION_LENGTH);
	}

	private String getAvatarUrl() {
		return RandomString.generate(STANDARD_LENGTH);
	}

	public void updateAccountInfo(Account account) {
		account.setStatus(getStatus());
		account.setDescription(getDescription());
		account.setAvatarUrl(getAvatarUrl());
	}

}
